﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Collections;
using System.Data;

namespace GPCSC.Web.sjsbyes
{
    public partial class NTJV : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                lodata();
            }
        }
        protected void lodata()
        {
            string ids = Usual.f_querystringToString("id");
            if (ids != "" && ids != null)
            {
                Hashtable htable = new Hashtable();
                htable.Add("@Postid", ids);
                DataSet ds = new DataSet();
                ds = new SqlReadXml().ReaderDataSet("sel_Ntjs", htable);
                if (ds.Tables.Count > 0)
                {
                    if (ds.Tables[0].Rows.Count > 0)
                    {
                        foreach (DataRow dr in ds.Tables[0].Rows)
                        { 
                             switch(dr["BTSBLMName"].ToString())
                            {
                                case "1":
                                    dr["BTSBLMName"] = "通知公告";
                                    break;
                                case "2":
                                    dr["BTSBLMName"] = "工作动态"; 
                                break;
                                case "3":
                                dr["BTSBLMName"] = "经验交流";
                                break;
                                case "4":
                                dr["BTSBLMName"] = "调研报告";
                                break;
                                case "5":
                                dr["BTSBLMName"] = "工作简报";
                                break;

                            }
                        }
                    }
                    Grid1.DataSource = ds.Tables[0];
                    Grid1.DataBind();
                }
            }
        }
    }
}